<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>无网络</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <style>
        html,
        body {
            font-size: 14px;
            height: 100%;
            background-color: #f2f2f2;
            overflow-y: hidden;
        }

        .none {
            margin: 14rem auto;
            width: 246px;
            text-align: center;
            font-size: 1.2rem;
            font-weight: bold;
            color: #FBB40E;
        }

        .reloadBtn {
            margin-top: 0.5rem;
            width: 100%;
            padding: 0.5rem;
            box-sizing: border-box;
            color: #fff;
            background-color: #FBB40E;
            border-radius: 0.35rem;
        }
    </style>
</head>

<body>
    <div class="none">
        <img src="../image/nonetwork.png" alt="">
        <span>No network connection</span>
        <div class="reloadBtn" onclick="reload()">Reload</div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function() {

    };

    function reload() {
        api.sendEvent({
            name: 'myEvent',
        });
    }
</script>

</html>
